package thread.disruptor.quickstart;

import com.lmax.disruptor.EventHandler;

/**
 * 事件处理器，也就是事件消费者
 *
 * @author verlet
 * @date 2020/5/2
 */
public class LongEventHandler implements EventHandler<LongEvent> {

    @Override
    public void onEvent(LongEvent longEvent, long l, boolean b) throws Exception {
        System.out.println(longEvent.getValue());
    }
}
